import React from "react";
import { Select } from "antd";

const LocaleSwitcher: React.FC<{
  value: string;
  onChange: (v: string) => void;
}> = ({ value, onChange }) => (
  <Select
    value={value}
    style={{ width: 80, marginRight: 12 }}
    onChange={onChange}
    options={[
      { value: "zh-CN", label: "中文" },
      { value: "en-US", label: "English" },
    ]}
  />
);

export default LocaleSwitcher;
